//
//  ModelOfTravelShopViewControllerData.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/8.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfTravelShopViewControllerData.h"

@implementation ModelOfTravelShopViewControllerData
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray *arr1 = [NSMutableArray array];
    NSMutableArray *arr2 = [NSMutableArray array];
    NSMutableArray *arr3 = [NSMutableArray array];
    NSMutableArray *arr4 = [NSMutableArray array];
    if ([key isEqualToString:@"hot_area"]) {
        for (NSDictionary *dic in value) {
            ModelOfHot_area *model = [ModelOfHot_area modelWithDic:dic];
            [arr1 addObject:model];
        }
        self.hot_area = arr1;
    }if ([key isEqualToString:@"market_topic"]) {
        for (NSDictionary *dic in value) {
            ModelOfMarket_topic *model = [ModelOfMarket_topic modelWithDic:dic];
            [arr2 addObject:model];
        }
        self.market_topic = arr2;
    }if ([key isEqualToString:@"hot_goods"]) {
        for (NSDictionary *dic in value) {
            ModelOfHot_goods *model = [ModelOfHot_goods modelWithDic:dic];
            [arr3 addObject:model];
        }
        self.hot_goods = arr3;
    }if ([key isEqualToString:@"discount_topic"]) {
        for (NSDictionary *dic in value) {
            ModelOfDiscount_topic *model = [ModelOfDiscount_topic modelWithDic:dic];
            [arr4 addObject:model];
        }
        self.discount_topic = arr4;
    }
}
@end
